﻿Public Class BeachDetail
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Function getRating(ByVal rating As Integer) As String
        Select Case (rating)
            Case Is = 1
                Return "Images/Rating/1-star-rating.png"
            Case Is = 2
                Return "Images/Rating/2-star-rating.png"
            Case Is = 3
                Return "Images/Rating/3-star-rating.png"
            Case Is = 4
                Return "Images/Rating/4-star-rating.png"
            Case Is = 5
                Return "Images/Rating/5-star-rating.png"

        End Select
        Return Nothing
    End Function

End Class